package cn.edu.sgu.www.pms.service.impl;

import cn.edu.sgu.www.pms.entity.Application;
import cn.edu.sgu.www.pms.mapper.ApplicationMapper;
import cn.edu.sgu.www.pms.service.ApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ApplicationServiceImpl implements ApplicationService {

    private final ApplicationMapper applicationMapper;

    @Autowired
    public ApplicationServiceImpl(ApplicationMapper applicationMapper) {
        this.applicationMapper = applicationMapper;
    }

    @Override
    public List<Application> selectAll() {
        return applicationMapper.selectList(null);
    }

    @Override
    public Application selectById(Integer id) {
        return applicationMapper.selectById(id);
    }

}